Skip to content

Comments

Add server usage section for user profile query#1428

Closed
KipzonderKop101 wants to merge 1 commit intosolidjs:mainfrom
KipzonderKop101:patch-4
Closed

Add server usage section for user profile query#1428
KipzonderKop101 wants to merge 1 commit intosolidjs:mainfrom
KipzonderKop101:patch-4

Conversation

@KipzonderKop101
Copy link
Contributor

Added server usage example for user profile query.

  • [ x] I have read the Contribution guide
  • [ x] This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

Right now I've experienced some confusion around what makes a query run only on the server. I feel an example would've helped my out a ton, and not make the mistake of going with file-level "use server";. See issue #2066 on Solid Start. solidjs/solid-start#2066

Be happy to adjust if needed. Thanks!

Related issues & labels

Added server usage example for user profile query.
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 17ec2ba
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/6999f5660167d10008917c7c
😎 Deploy Preview https://deploy-preview-1428--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@amirhhashemi
Copy link
Collaborator

I appreciate you taking the time to do this, but this is intentional. I didn't add that example here because "use server" is a feature of SolidStart and doesn’t work with Solid Router alone. Of course, this can be clarified, but in principle, I don't think SolidStart features should be documented in the Solid Router docs. It could confuse people who aren't familiar with SolidStart and may potentially mislead AI tools.

"use server" is already documented in the SolidStart docs. That is the correct place to resolve any confusion. In particular, I've been planning to add a dedicated page for server functions, but I haven't had the motivation to complete it yet.

@KipzonderKop101
Copy link
Contributor Author

@amirhhashemi thank you for the explanation! That does make a lot of sense.

If there is anyway I'd be able to help out, feel free to reach out to me. Thanks again for taking the time to review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants